<?php
class omeauto_autoconfirm_dlycorp_weight{
    var $name = "符合配送区域的权重最高的物流公司"; 
    
    function get_dlycorp($corp_list,$order_sdf){
        $oDlycorp = app::get('ome')->model('dly_corp');
        $rows = $oDlycorp->getList("corp_id",array("corp_id"=>$corp_list),0,1,"weight DESC");
        
        return $rows[0]['corp_id'];
    }
}